//
//  HID3TagEditWC.h
//  HMusicPlayer
//
//  Created by hament deng on 14/10/24.
//  Copyright (c) 2014年 HJ. All rights reserved.
//

#import <Cocoa/Cocoa.h>

typedef   void(^ID3TagEditHandeler)(NSString * string);//save handel
@class TagReader,HSongItem;
@interface HID3TagEditWC : NSWindowController

@property (nonatomic,strong)TagReader * currentReader;
@property (nonatomic,copy) ID3TagEditHandeler  id3TagHandel;

@property (weak) IBOutlet NSButton *saveBtn;
@property (weak) IBOutlet NSButton *cleanImgBtn;
@property (weak) IBOutlet NSImageView *albumImgView;
//@property (strong)  NSImage *albumImg;



@property (weak) IBOutlet NSTextField *albumImgLab;
@property (weak) IBOutlet NSTextField *imgDesLab;
@property (weak) IBOutlet NSTextField *titleLab;
@property (weak) IBOutlet NSTextField *artistLab;
@property (weak) IBOutlet NSTextField *albumLab;
@property (weak) IBOutlet NSTextField *genreLab;
@property (weak) IBOutlet NSTextField *yearLab;
@property (weak) IBOutlet NSTextField *trackLab;
@property (weak) IBOutlet NSTextField *commentLab;

@property (strong) HSongItem * currentEditsongItem;



- (IBAction)save:(NSButton *)sender;
-(void)configTagReader:(TagReader*)tagReader;
- (IBAction)imgChange:(NSImageView *)sender;
- (IBAction)cleanImg:(NSButton *)sender;

@end
